package com.sxt.bus.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sxt.bus.mapper.TjfxMapper;
import com.sxt.bus.service.TjfxService;
import com.sxt.bus.vo.tjfx.BaseEntity;
import com.sxt.bus.vo.tjfx.LineEntity;
import com.sxt.bus.vo.tjfx.PieEntity;

@Service
@Transactional
public class TjfxServiceImpl implements TjfxService{
	
	@Autowired
	private TjfxMapper tjfxMapper;

	@Override
	public List<PieEntity> queryCustomerArea() {
		return tjfxMapper.queryCustomerArea();
	}

	/**
	 * 查询业务员年度销售额柱子图数据
	 */
	@Override
	public List<BaseEntity> queryOpernameSalMoneyYear(String year) {
		return this.tjfxMapper.queryOpernameSalMoneyYear(year);
	}

	/**
	 * 公司年度月份销售额曲线图的数据
	 */
	@Override
	public LineEntity queryTjYearMonthLine(String year) {
		return tjfxMapper.queryTjYearMonthLine(year);
	}

}
